<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//$("#tab tr").hover(
					   //function(){$(this).addClass("over");}),function(){$(this).removeClass("over");};
					   //function(){$(this).css("background","red");})
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
});
</script>
<title><{$title}></title>
</head>

<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="7" style="background-color:#4F9AD0;">管理员信息</th>
  </tr>
  <tr>
    <td width="10%">管理员编号</td>
    <td width="20%">管理员名称</td>
    <td width="20%">管理员类型</td>
    <td width="20%">创建时间</td>
    <td colspan="3">操作</td>
  </tr>
  <{section name=tmp_res_admin loop=$res_admin}>
  <tr class="over">
    <td><{$res_admin[tmp_res_admin].id}></td>
    <td><{$res_admin[tmp_res_admin].username}></td>
    <td><{if $res_admin[tmp_res_admin].type == "super" }>超级管理员<{else}>普通管理员<{/if}></td>
    <td><{$res_admin[tmp_res_admin].createtime}></td>
    <td colspan="3"><a href="index.php?controller=admin&action=updateRuler&id=<{$res_admin[tmp_res_admin].id}>">更改密码</a> <{if $res_admin[tmp_res_admin].type != "super" }><a href="index.php?controller=admin&action=delRuler&id=<{$res_admin[tmp_res_admin].id}>" onclick="javascript:return confirm('你确定要删除吗？');">删除用户</a><{/if}></td>
  </tr>
  <{/section}>
</table>
</body>
</html>
